package components;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class BackPanel extends JPanel {

	private Image image = null;

	public BackPanel(Image image) {
		this.image = image;
	}

	protected void paintComponent(Graphics g) {
		g.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), this);
	}
	
}
